package com.doria.provider.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;

@RestController
@RequestMapping("/actuator")
public class ActuatorController {

    @GetMapping("/info")
    public String info(){
        return "status:normal,time: "+new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date())+","+System.getenv();
    }
}
